package com.itheima.model;

public enum ResultCodeEnum {
    SUCCESS(0,"操作成功"),
    NEED_LOGIN(1,"需要登录后操作"),
    SERVER_FAIL(2,"服务器出现异常");
    int code;
    String errorMessage;
    ResultCodeEnum(int code, String errorMessage){
        this.code = code;
        this.errorMessage = errorMessage;
    }
    public int getCode() {
        return code;
    }

    public String getErrorMessage() {
        return errorMessage;
    }
}
